import 'package:flutter/material.dart';
import 'package:flutter_api/modules/common/common_tab_page.dart';
import 'package:flutter_api/modules/widget_helper/pages/intrinsicHeight_page.dart';

class HelperWidgetScreen extends StatefulWidget {
  static const String routeName = "/helper/widget";

  @override
  _HelperWidgetScreenState createState() => _HelperWidgetScreenState();
}

class _HelperWidgetScreenState extends CommonTabPageState<HelperWidgetScreen> {
  @override
  String getFileName(int index) {
    String fileName = "";
    switch (index) {
      case 0:
        fileName = "intrinsicheight";
        break;
    }
    return fileName;
  }

  @override
  List<Widget> getPages() {
    return [
      IntrinsicHeightPage(),
    ];
  }

  @override
  List<Tab> getTabs() {
    return [
      Tab(text: '延伸组件'),
    ];
  }
}
